import request from "../helpers/Request";
const prefix = "send_msg"


const sendText = async(data) => {
    const res = await request.sendCommand("text", data, prefix);
    return res;
}
const sendImage = async(data) => {
    const res = await request.sendCommand("image", data, prefix);
    return res;
}
const sendVideo = async(data) => {
    const res = await request.sendCommand("video", data, prefix);
    return res;
}
const sendFile = async(data) => {
    const res = await request.sendCommand("file", data, prefix);
    return res;
}
const sendEmoji = async(data) => {
    const res = await request.sendCommand("emoji", data, prefix);
    return res;
}
const sendGroupAt = async(data) => {
    const res = await request.sendCommand("group_at", data, prefix);
    return res;
}
const sendLink = async(data) => {
    const res = await request.sendCommand("share_link", data, prefix);
    return res;
}
const sendCard = async(data) => {
    // 已被禁用
    const res = await request.sendCommand("share_card", data, prefix);
    return res;
}
const sendMusic = async(data) => {
    const res = await request.sendCommand("share_music", data, prefix);
    return res;
}
const sendMini = async(data) => {
    const res = await request.sendCommand("share_mini", data, prefix);
    return res;
}
const forward = async(data) => {
    const res = await request.sendCommand("forward", data, prefix);
    return res;
}

export  {
    sendText,
    sendImage,
    sendVideo,
    sendFile,
    sendEmoji,
    sendGroupAt,
    sendLink,
    sendMusic,
    sendMini,
    forward,
}

